<?php
  add_action('admin_menu', 'myconfig_admins_hotel');
  function myconfig_admins_hotel()
  {   
     add_menu_page( 'Hotel Setting', 'Hotel Setting', 'administrator', 'hotel-setting', 'hotel_theme_setting');
  }  
  function hotel_theme_setting()
  {
  		## tuy bien user
  		global $current_user;
  		get_currentuserinfo();		
    ?>		 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	
	<title>Order Detail</title>
	<script src="<?php bloginfo('template_url');?>/orders/js/jquery.js" type="text/javascript" ></script>
	<script src="<?php bloginfo('template_url');?>/orders/js/customJS.js" type="text/javascript" ></script>
		
	<link href="<?php bloginfo('template_url');?>/orders/css/style.css" rel="stylesheet" type="text/css" />
	<link href="<?php bloginfo('template_url');?>/orders/css/orders.css" rel="stylesheet" type="text/css" />
	<link href="<?php bloginfo('template_url');?>/orders/css/tabcontent.css" rel="stylesheet" type="text/css" />
	<!-- 
	<script src="<?php bloginfo('template_url');?>/admins/js/tabcontent.js" 			type="text/javascript" ></script>  
	 -->		
	</head>		
	<body>			
			<div id="my_theme_options_content" style="width: 98%;">
                <!-- Tab choosen -->
                	<?php
                	$acti = $_GET['action']; 
                	?>		           
		           <ul id="countrytabs" class="shadetabs">          
		           	 	<li><a <?php if(!isset($_GET['action']) || $acti=="hotel-booked") echo 'class="tour-menu-active"';?> href="<?php bloginfo('home');?>/wp-admin/admin.php?page=hotel-setting&action=hotel-booked" >Hotel Booked</a></li>		           	 	
		           	 	<li><a <?php if($acti=="hotel-price-table") echo 'class="tour-menu-active"';?> href="<?php bloginfo('home');?>/wp-admin/admin.php?page=hotel-setting&action=hotel-price-table" >Hotel Price Table</a></li>                                                     
		           	 	<li><a <?php if($acti=="hotel-deposit") echo 'class="tour-menu-active"';?> href="<?php bloginfo('home');?>/wp-admin/admin.php?page=hotel-setting&action=hotel-deposit" >Hotel Deposit</a></li>
		           	 	<li><a <?php if($acti=="hotel-node") echo 'class="tour-menu-active"';?>href="<?php bloginfo('home');?>/wp-admin/admin.php?page=hotel-setting&action=hotel-node" >Hotel Node</a></li>
                    </ul>
                 <!-- End Tab choosen -->   
                    <div class="box-tabs">                    
                    <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
                    <?php
  					##action view and update
  					if(isset($_GET['update']))
                    {
                    	$update = $_GET['update'];                    	
                    	require_once TEMPLATEPATH.'/orders/hotel/views/view-hotel-update-booked.php';                    
                    }                    
                    else if(isset($_GET['view']))
                    {
                    	$view = $_GET['view'];                    	
                    	require_once TEMPLATEPATH.'/orders/hotel/views/view-hotel-detail-booked.php';                    
                    }
                    else 
                    {                    
	  					if(isset($_GET['action']) && $_GET['action']=="hotel-price-table")
	                    {
	                    	include TEMPLATEPATH.'/orders/hotel/views/view-hotel-price-table.php';
	                    }
	                    else if(isset($_GET['action']) && $_GET['action']=="hotel-deposit")
	                    {
	                    	include TEMPLATEPATH.'/orders/hotel/views/view-hotel-deposit.php';
	                    }
                   	 	else if(isset($_GET['action']) && $_GET['action']=="hotel-node")
	                    {
	                    	include TEMPLATEPATH.'/orders/hotel/views/view-hotel-node.php';
	                    }
	                    else
	                    {
	                    	include TEMPLATEPATH.'/orders/hotel/views/view-hotel-booked.php';
	                    }
                    } 
                    ?>     
                    <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->	                    
	           		</div>		             					             
    	</div>
    	</body>
	</html>
    <?php
  }

